package com.bwie.mq;

import com.bwie.pojo.po.User;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class MessageProduct2 {
    @Autowired
    public AmqpTemplate amqpTemplate;

    public void setAmqpTemplate(User user) {
            amqpTemplate.convertAndSend("2212Akey1",user);

    }
}
